<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //[]  [sadfw]不是像 /sadfw/连续匹配了，而是出现在里面的每一个单独匹配
        let name="sadwx唐玮";
        let reg=/[ax]/g
        console.log(name.match(reg));

        //[0-9]  [a-z]  []里面表示的是真实的字符串


    </script>
</body>
</html>